package org.uim.cricket.db.impl;

public class ExistGround extends DBBooleanResultQuery {

	private String gId = null;
	
	public ExistGround(int groundID) {
		gId = String.valueOf(groundID);
	}
	
	public ExistGround(String theGroudIDStr) {
		this.gId = theGroudIDStr;
	}
	
	public boolean exists() {
		if (gId == null || gId.length() == 0) return false;
		
		try {
			
			return super.result("CALL sp_Exist_Ground(" + gId + ");"); 
			
		} catch (Exception e) {
			e.printStackTrace();
		} 
		
		return false;
	}
	
	
}
